<div class="input-group mb-3" >
	<span class="input-group-addon p0">
		<img id="validCodeImg" class="validCodeImg" title="${i18n('看不清，点击图片刷新')}" src="${ctxPath}/servlet/validateCodeServlet" alt="" style="width:100px;height:30px"/>
	</span>
	<input type="text" id="${name}" name="${name}" class="form-control" required="true" remote="${ctxPath}/servlet/validateCodeServlet" placeholder="${i18n('验证码')}" data-msg-required="${i18n('请填写验证码')}" data-msg-remote="${i18n('验证码不正确')}"/>
</div>
<script>

$('#validCodeImg').click(function(){
	var src = '${ctxPath}/servlet/validateCodeServlet?'+new Date().getTime();
	$('#validCodeImg').attr('src',src).removeClass('hide');
	$('#${name}').val('').focus();
});
</script>
